// 前台 发现模块 的axios封装 发请求

import myaxios from './MyAxios.js'

// 服务器地址
const baseUrl = "http://43.136.172.73/api/v1/"

const OrderApi = {
	// 查询新增预约订单
	queryNewOrder() {
		let url = baseUrl + 'reservation/getValue'
		return myaxios.get(url)
	},

	// 查询全部预约单
	queryAllOrderList(params) {
		let url = baseUrl + '/reservation/getReservationList/' + params;
		return myaxios.get(url);
	},
	// 查询不同状态预约单
	queryOrderList(params) {
		let url = baseUrl + '/reservation/getReservationStateList';
		return myaxios.post(url, params);
	},

	// 根据预约订单id查询具体订单
	queryDetailsOrder(params) {
		let url = baseUrl + '/reservation/query/' + params
		return myaxios.get(url)
	},

	// 根据预约订单id查询具体订单
	queryCancelOrder(params) {
		let url = baseUrl + '/reservation/cancelReservation/' + params
		return myaxios.get(url)
	},

	// 添加备注
	queryRemark(params) {
		let url = baseUrl + '/reservation/remark'
		return myaxios.post(url, params)
	},


	// 查询回收店列表
	queryStore() {
		let url = baseUrl + '/system/GbStation/selectAll/'
		return myaxios.get(url)

	}
}

export default OrderApi;